#ifndef CELL_H
#define CELL_H

#include <stdbool.h>
#include "config.h"
#include "defines.h"

struct Cell {
    unsigned char  genome[GENOME_LENGTH];
    struct Color   color;
    unsigned       age;
    int            energy;
    int            minerals;
    enum Direction rotation;
    unsigned char  genomeIndex;
    enum Type      type;
    unsigned       photosynthesisCount;
	unsigned       attackCount;
	unsigned       mineralsCount;
    bool           useMinerals;
};

struct World {
    unsigned width, height;
    int      time;
    int      dayLength;
    bool     timeDirection;
    struct   Cell cells[MAX_CELLS];
    unsigned mutationChance;
    unsigned maxEnergy;
    unsigned maxAge;
    unsigned foodMaxAge;
};

#endif
